/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tradingline.entity;

import com.jeeplus.modules.subgoods.entity.SubGoods;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 交易线数据Entity
 * @author w
 * @version 2021-04-12
 */
public class TradingLine extends DataEntity<TradingLine> {
	
	private static final long serialVersionUID = 1L;
	private SubGoods subGoods;		// 商品
	private Double startPrice;		// 开盘价
	private Double endPrice;		// 收盘价
	private Double maxPrice;		// 最高价
	private Double minPrice;		// 最低价
	private String flag;			//标识（0五分1时2日）
	
	public TradingLine() {
		super();
	}

	public TradingLine(String id){
		super(id);
	}

	@ExcelField(title="商品", fieldType=SubGoods.class, value="subGoods.goodsName", align=2, sort=1)
	public SubGoods getSubGoods() {
		return subGoods;
	}

	public void setSubGoods(SubGoods subGoods) {
		this.subGoods = subGoods;
	}
	
	@ExcelField(title="开盘价", align=2, sort=2)
	public Double getStartPrice() {
		return startPrice;
	}

	public void setStartPrice(Double startPrice) {
		this.startPrice = startPrice;
	}
	
	@ExcelField(title="收盘价", align=2, sort=3)
	public Double getEndPrice() {
		return endPrice;
	}

	public void setEndPrice(Double endPrice) {
		this.endPrice = endPrice;
	}
	
	@ExcelField(title="最高价", align=2, sort=4)
	public Double getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(Double maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	@ExcelField(title="最低价", align=2, sort=5)
	public Double getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(Double minPrice) {
		this.minPrice = minPrice;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}
}